import request from "@/utils/request";

// 查询库存盘点列表
export function listErpWareCheck(query) {
  return request({
    url: "/erp/ErpWareCheck/list",
    method: "get",
    params: query,
  });
}

// 查询库存盘点详细
export function getErpWareCheck(wareCheckId) {
  return request({
    url: "/erp/ErpWareCheck/" + wareCheckId,
    method: "get",
  });
}

// 新增库存盘点
export function addErpWareCheck(data) {
  return request({
    url: "/erp/ErpWareCheck",
    method: "post",
    data: data,
  });
}

// 修改库存盘点
export function updateErpWareCheck(data) {
  return request({
    url: "/erp/ErpWareCheck",
    method: "put",
    data: data,
  });
}

// 审核库存盘点
export function auditErpWareCheck(data) {
  return request({
    url: "/erp/ErpWareCheck/audit",
    method: "put",
    data: data,
  });
}

// 删除库存盘点
export function delErpWareCheck(wareCheckId) {
  return request({
    url: "/erp/ErpWareCheck/" + wareCheckId,
    method: "delete",
  });
}
